<?php
if( !defined('BASE') ) exit('Access Denied!');      
/**
* How to use
* @see obullo.com/manual/user/user_controller.html
*/

Class UserException extends CommonException{} 

Class __autoloader {
    
    function __construct()
    {
        // autoload libraries, helpers, lang, config files etc..        
        // loader::app_lib('');
        // loader::base_lib('');
        // loader::app_script('');
        // loader::app_helper('');
        // loader::base_helper('');
    }   
}

Class User_Controller extends __autoloader
{
      public $base     = 'http://localhost/obullo/';
      public $base_img = 'base/views/images/';
      
      // Build html your base html contents
      public $title_tag = '';
      public $head_tag  = '';
      public $body_tag  = '';
      public $h1  = '';
      public $h2  = '';
      public $h3  = '';
                                              
      public function __user()
      {
          parent::__construct();
                                              
          $this->base     = config_item('base_url');
          $this->base_img = config_item('source_url').'/images/';
      }
                                                     
      public function __header()
      {
          // this is header for every function
          $this->title_tag = 'Default common title tag for every page !';
          $this->body_tag  = 'Default body tag for every page !';
      } 
      
      // this is parent index() methods for all index() methods...
      public function __index(){}
      
} // end class.
  
  
?>
